package com.zz.common.entity;

import com.zz.common.protocol.TunnelProtocol;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelHandlerContext;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Information {

    /**
     * 上下文对象
     */
    private ChannelHandlerContext context;

    /**
     * 消息体
     */
    private TunnelProtocol protocolMsg;

    /**
     * 启动器
     */
    private Bootstrap bootstrap;

    private Bootstrap localBootstrap;

    public Information(ChannelHandlerContext context, TunnelProtocol protocolMsg) {
        this.context = context;
        this.protocolMsg = protocolMsg;
    }

    public Information(ChannelHandlerContext context, TunnelProtocol protocolMsg, Bootstrap bootstrap) {
        this.context = context;
        this.protocolMsg = protocolMsg;
        this.bootstrap = bootstrap;
    }

    public Information(ChannelHandlerContext context, TunnelProtocol protocolMsg, Bootstrap bootstrap, Bootstrap localBootstrap) {
        this.context = context;
        this.protocolMsg = protocolMsg;
        this.bootstrap = bootstrap;
        this.localBootstrap = localBootstrap;
    }

}
